package com.yida.gwj.config.controller;

import com.yida.common.core.web.controller.BaseController;
import com.yida.common.core.web.domain.AjaxResult;
import com.yida.gwj.config.domain.request.GwjBusinessHouseUseTypeRequest;
import com.yida.gwj.config.service.IGwjBusinessTypeService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author lqq
 * @date 2023-02-24
 */
@RestController
@RequestMapping("/businessType")
@Api(tags = "业务相关类型查询")
public class GwjBusinessTypeController extends BaseController {

	@Resource
	private IGwjBusinessTypeService gwjBusinessTypeService;

	/**
	 * 查询业务房屋类型
	 */
	@PostMapping("/houseUseType")
	@ApiOperation("查询业务房屋类型")
	public AjaxResult houseUseType(@Validated @RequestBody GwjBusinessHouseUseTypeRequest gwjBusinessHouseUseTypeRequest) {
		return AjaxResult.success(gwjBusinessTypeService.selectHouseUseType(gwjBusinessHouseUseTypeRequest));
	}

}
